package com.yongren.mall.goods.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商品的不可再分的最小单元
 * </p>
 *
 * @author yongren
 * @since 2021-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Sku对象", description = "商品的不可再分的最小单元")
public class Sku implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标识")
    private Long id;

    @ApiModelProperty(value = "sku标识")
    private Long skuId;

    @ApiModelProperty(value = "spu标识")
    private Long spuId;

    @ApiModelProperty(value = "库存")
    private Integer inventory;

    @ApiModelProperty(value = "价格")
    private BigDecimal price;

    @ApiModelProperty(value = "规格名")
    private String specificationName;

    @ApiModelProperty(value = "规格具体值")
    private String specificationValue;


}
